package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.sell.model.entity.CustomerCategory;
import com.wing.sell.model.request.CustomerCategoryForm;
import com.wing.sell.model.response.CustomerCategoryVO;

import java.util.List;
import java.util.Map;

/**
 * 客户类别-Service
 *
 * @author
 */
public interface CustomerCategoryService extends IService<CustomerCategory> {

    /**
     * 添加
     *
     * @param customerCategoryForm
     * @return
     */
    int add(CustomerCategoryForm customerCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CustomerCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CustomerCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CustomerCategoryVO get4appById(Long id);

    int update(CustomerCategoryForm customerCategoryForm);

    int enable(Long id);

    int disable(Long id);

    JsonResult getTreeData();

    /**
     * 删除
     * @param customerCategoryId
     * @return
     */
    boolean delete(Long customerCategoryId);
}
